from django.urls import path, include
from rest_framework.routers import SimpleRouter

from . import views

router = SimpleRouter()
router.register('', views.MobileView, 'mobile')
router.register('register', views.RegisterView, 'register')
# router.register('userinfo', views.UserInfo, 'userinfo')
urlpatterns = [
    path('', include(router.urls)),
    path('login/', views.LoginView.as_view({'post': 'login'})),
    path('password/', views.Password.as_view({'post': 'post'})),
    path('userinfo/', views.UserInfo.as_view({'post': 'post'})),
    path('sms/', views.LoginView.as_view({'get': 'send_sms'})),
    path('mobile_login/', views.LoginView.as_view({'post': 'mobile_login'})),
]
# urlpatterns += router.urls
